package qcmPlus.beans;

/**
 * Classe Reponse
 * 
 * @author M. Lamarana BARRY
 */

public class Reponse {
	private int id;
	private String intitule;
	private boolean estBonneReponse;
	private Question question;

	// private Question question;
	// private boolean statut;

	/**
	 * Constructeur par defaut de Reponse
	 */

	public Reponse() {

	}

	public Reponse(String intitule) {
		this.setIntitule(intitule);

	}

	/**
	 * Constructeur de Reponse
	 * 
	 * @param id
	 *            l'identifiant de la Reponse
	 * @param idQuestion
	 *            l'identifiant de la question
	 * @param intitule
	 *            la description de la Reponse
	 * @param bonneReponse
	 *            determine si la reponse est correcte ou pas
	 * @param statut
	 *            determine si le questionnaire est supprime(desactive) ou
	 *            pas(actif).
	 * 
	 * 
	 *            public Reponse(int id, int idQuestion, String intitule,
	 *            boolean bonneReponse, boolean statut) { super(); this.id = id;
	 *            this.idQuestion = idQuestion; this.intitule = intitule;
	 *            this.bonneReponse = bonneReponse; this.statut = statut; }
	 */

	/**
	 * les getters et setters
	 */

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	// public Question getQuestion() {
	// return question;
	// }
	//
	// public void setQuestion(Question question) {
	// this.question = question;
	// }
	//
	// public int getIdQuestion() {
	// return question.getId();
	// }

	public String getIntitule() {
		return intitule;
	}

	public void setIntitule(String intitule) {
		this.intitule = intitule;
	}

	public boolean isEstBonneReponse() {
		return estBonneReponse;
	}

	public void setEstBonneReponse(boolean estBonneReponse) {
		this.estBonneReponse = estBonneReponse;
	}

	public Question getQuestion() {
		return question;
	}

	public void setQuestion(Question question) {
		this.question = question;
	}

}
